<template>
  <div id="root">
    <header>
      <div class="wrapper">
        <nav>
          <RouterLink to="/">slot高级</RouterLink>|
          <RouterLink to="/download">文件下载与预览</RouterLink>|
          <RouterLink to="/upload">文件上传</RouterLink>|
          <RouterLink to="/dynamicGraph">动态图表与gif</RouterLink>|
          <RouterLink to="/multipleGraph">两种图表</RouterLink>|
          <RouterLink to="/dateCharts">日期折线图</RouterLink>|
          <RouterLink to="/typeCharts">类型柱状图</RouterLink>|
          <RouterLink to="/typeChartsDynamics">动态graphic柱状图</RouterLink>|
          <RouterLink to="/gaoMap">网格地图</RouterLink>|
          <RouterLink to="/table">三层表格</RouterLink>|
          <RouterLink to="/merge">合并表格</RouterLink>|
          <RouterLink to="/tableDynamics">动态表格</RouterLink>|
          <RouterLink to="/searchList">搜索内容高亮</RouterLink>|
          <RouterLink to="/runForm">动态表单</RouterLink>|
          <RouterLink to="/scrollMenu">滚动菜单</RouterLink>|
          <RouterLink to="/scrollContent">无限滚动</RouterLink>|
          <RouterLink to="/perForm">轮播图表</RouterLink> |
          <RouterLink to="/appCenter">拖拽菜单</RouterLink> |
        </nav>
      </div>
    </header>

    <RouterView />
  </div>
</template>

<style lang="scss" scoped>
header {
  display: flex;
  align-items: center;
  justify-content: center;
}
header .wrapper {
  display: flex;
  place-items: flex-start;
  flex-wrap: wrap;
}

nav {
  text-align: left;
  // margin-left: -1rem;
  font-size: 16px;

  padding: 10px 0;
  margin-top: 10px;
}

nav a.router-link-exact-active {
  color: rgb(0, 255, 89);
}

nav a.router-link-exact-active:hover {
  background-color: transparent;
}

nav a {
  display: inline-block;
  padding: 0 1rem;
  border-left: 1px solid var(--color-border);
}

nav a:first-of-type {
  border: 0;
}
</style>
